import { request } from '@/utils/request.js'

/**
 * 货柜 API JS
 */

export default {
  /**
   * 获取列表
   * @returns
   */
  getList (params = {}) {
    return request({
      url: 'sea/waybillTransport/index',
      method: 'get',
      params
    })
  },


  /**
   * 添加
   * @returns
   */
  save (data = {}) {
    return request({
      url: 'sea/waybillTransport/save',
      method: 'post',
      data
    })
  },

  /**
   * 更新数据
   * @returns
   */
  update (data = {}) {
    return request({
      url: 'sea/waybillTransport/update/' + data.id,
      method: 'put',
      data
    })
  },

}